Simplified Travis CI & RVM
2011-12-08
Last time I showed you one possibility of replacing bundler with rvm.
Today I want to improve on the hacky .load_gemset
file, by simply putting it
into the .travis.yml
.
It was irritating me to have such a roundabout way of loading rvm, and after studying the way the configuration is being handled a bit more, this seemed so obvious I can't believe I missed it before.
This is being used in ffi-magic already, and will shortly land in Innate as well.
---
script: RUBYOPT=-rubygems rake bacon
before_script:
- test -s "$HOME/.rvm/scripts/rvm" && source "$HOME/.rvm/scripts/rvm"
- test -s .gems && rvm gemset import .gems
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- ruby-head
- rbx-18mode
- rbx-19mode
- ree
- jruby
notifications:
email:
- mf@rubyists.com
branches:
only:
- master
Yeah, that's all, happy Continuous Integration.